package org.ecpkn.PAGridSim.core.report;

import java.util.Comparator;
import java.util.Map;

public class ComparatorExecutionEndTime implements Comparator<Map.Entry<String, SingleExecutionTrace>> {

	public int compare(Map.Entry<String, SingleExecutionTrace> t0,Map.Entry<String, SingleExecutionTrace> t1) {
		
		int flagEndTime = 0;
		int factor=10000;
		double e0 = t0.getValue().getEndTime();
		double e1 = t1.getValue().getEndTime();
		flagEndTime = (int) (e0*factor-e1*factor);
			return flagEndTime;
		}
}
